.home {
  margin: 0 auto;
  
  //banner部分
  .home-top-bg {
    height: 200px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url('./imgs/headerBg.png') no-repeat center right;
    background-size: cover
    // img{
    //   height: 100%;
    //   width: 100%;
    // }
  }

  //中间的图片部分
  .home-center {
    margin: 170px 0 20px 0;
    height: 400px;
    display: flex;

    //轮播图
    .home-center-left {
      position: relative;
      height: 400px;
      width: 900px;
      margin-right: 20px;
      img{
        width: 100%;
      }
      .btn-left,
      .btn-right {
        position: absolute;
        user-select: none;
      }

      .btn-left {
        left: 0;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
      }

      .btn-right {
        right: 0;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
      }

      &:hover {

        .btn-left,
        .btn-right {
          cursor: pointer;
          font-size: 25px;
          color: #fff;
          text-align: center;
          z-index: 1;

          width: 35px;
          height: 60px;
          line-height: 60px;
          background: rgba(0, 0, 0, .3);
          top: 50%;
          transform: translateY(-50%);
        }
      }
    }

    //中间右侧的图片
    .home-center-right {
      display: flex;
      flex: 1;
      height: 400px;
      
      flex-direction: column;

      .right-img1 {
        flex: 1;
        margin-bottom: 20px;
        background: url('./imgs/right1.png') no-repeat center center;
        background-size: cover;

        a {
          display: block;
          height: 100%;
          width: 100%;
        }
      }

      .right-img2 {
        flex: 1;
        background: url('./imgs/right2.png') no-repeat center center;
        background-size: cover;

        a {
          display: block;
          height: 100%;
          width: 100%;
        }
      }
    }
  }

  .home-main {
    .home-main-left {
      min-height: 500px;

    }

    .home-main-right {
      padding-left: 20px;
      min-height: 500px;
    }
  }
}

@media screen and (max-width: 767px) {
  .home {
    width: 100%;
    overflow: hidden;
    .home-center{
      display: none;
    }
  }
}

@media screen and (min-width: 768px) and(max-width:991px) {
  .home {
    width: 750px;
    //中间的图片部分
  .home-center {
    margin: 170px 0 20px 0;
    height: 400px;
    display: flex;

    //轮播图
    .home-center-left {
      position: relative;
      height: 400px;
      width: 750px;
      margin-right: 20px;
      img{
        width: 100%;
      }
    }

    //中间右侧的图片
    .home-center-right {
      display: none;
    }
  }

  }
}

@media screen and (min-width: 992px) and (max-width: 1199px){
  .home{
      width: 970px;
      .home-center {
        margin: 170px 0 20px 0;
        height: 400px;
        display: flex;
    
        //轮播图
        .home-center-left {
          position: relative;
          height: 400px;
          width: 970px;
          
          img{
            width: 100%!important;
          }
        }
    
        //中间右侧的图片
        .home-center-right {
          display: none;
        }
      }
  }
}
@media screen and (min-width: 1200px){
  .home {
    width: 1200px;
  }
}